.TH MSTMCRA "1" "March 2020" "mstflint" "User Commands"
.SH NAME
mstmcra \- Mellanox Configuration Registers Access tool
.SH DESCRIPTION
.IP
Mellanox Configuration Registers Access tool
Usage: mstmcra [\-s <i2c\-slave>] [\-a <adb dump>] [\-v] [\-h] [\-c] <device>
.IP
<addr[.<bit offset>:<bit size>]|[,<bytes number>]> [data]
If data is given, operation is write. Otherwise it is read.
If a bit range is given in the address (E.G.: 0xf0014.16:8):
.TP
For read
\- Only the requested bits are printed.
.IP
For write \- Read\-Modify\-Write. Only the requested bits are changed.
.IP
If 'bytes number' is given in the address (E.G.: 0xf0014,16):
.TP
For read
\- Will read a block (its size is the given bytes number).
.IP
For write \- User need to give list of dwrods to write,
.IP
number of dwords should be (bytes number/4).
.PP
DESCRIPTION:
.IP
Reads/writes a single word from/to a device configuration register space
.HP
\fB\-s\fR <i2c\-slave> : I2C slave address.
.HP
\fB\-a\fR <dump file> : adb dump file, used for access by path.
.TP
\fB\-c\fR
: clear the device's PCI semaphore.
.TP
\fB\-h\fR
: Print this help message.
.TP
\fB\-v\fR
: Display version info
.SS "Environment Variables:"
.TP
ADB_DUMP
: Holds the path to adb dump, used for access by path (can be overridden by "\-a").
.SH "SEE ALSO"
.B mstflint(1)
